<?php

namespace common\components\extenders;


use webback\models\data\AdvertItem;
use yii\base\Component;

class AdvertItemManage extends Component{

    public static function num($id){
        return AdvertItem::find()->where(['ad_id'=>$id])->count();
    }




}